package com.xiejun.user.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;


@RestController
@RequestMapping("/user")
public class UserController {
    
    @GetMapping("/users")
    public List<String> getUsers() {
        return Arrays.asList("张三", "李四", "王五");
    }
    
    @GetMapping("/hello")
    public String hello() {
        return "Hello from User Service!";
    }
}